package com.nunbey.lingxi.module.mode.record;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * ECG记录返回给用户的对象
 */
public class EcgRecordReceive {

    /**
     * 记录id
     */
    Long recordId;
    /**
     * 平均心率
     */
    int averageRate;
    /**
     * 心脏风险度
     */
    int heartRiskAwareness;
    /**
     * 心脏年龄
     */
    int heartAge;
    /**
     * 放松度
     */
    int relaxation;
    /**
     *平均呼吸率：/分钟
     */
    float respiration;
    /**
     * 心脏强弱
     */
    String heartFitnessLevelLabel;
    /**
     * r间隔
     */
    int r_r_interval;
    /**
     * 判别结果
     */
    String distinguish;
    /**
     * 记录时间
     */
    LocalDateTime recordTime;

    public EcgRecordReceive(Long recordId, int averageRate, int heartRiskAwareness, int heartAge, int relaxation, float respiration, String heartFitnessLevelLabel, int r_r_interval, String distinguish, LocalDateTime recordTime) {
        this.recordId = recordId;
        this.averageRate = averageRate;
        this.heartRiskAwareness = heartRiskAwareness;
        this.heartAge = heartAge;
        this.relaxation = relaxation;
        this.respiration = respiration;
        this.heartFitnessLevelLabel = heartFitnessLevelLabel;
        this.r_r_interval = r_r_interval;
        this.distinguish = distinguish;
        this.recordTime = recordTime;
    }

    public Long getRecordId() {
        return recordId;
    }

    public int getAverageRate() {
        return averageRate;
    }

    public int getHeartRiskAwareness() {
        return heartRiskAwareness;
    }

    public int getHeartAge() {
        return heartAge;
    }

    public int getRelaxation() {
        return relaxation;
    }

    public float getRespiration() {
        return respiration;
    }

    public String getHeartFitnessLevelLabel() {
        return heartFitnessLevelLabel;
    }

    public int getR_r_interval() {
        return r_r_interval;
    }

    public String getDistinguish() {
        return distinguish;
    }

    public LocalDateTime getRecordTime() {
        return recordTime;
    }
}
